package com.albaba.designpattern.chain_of_responsibility.text_002;

/**
 * @author zx
 * @version 1.0
 * @description 封装审核信息
 * @date 2025/2/24 21:33
 */
public class AuthInfo {

    // 状态码
    private String code;

    // 审核的相关信息
    private String info = " ";

    public AuthInfo(String code, String...infos) {
        this.code = code;
        for (String str : infos) {
            this.info = info.concat(str + " ");
        }
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "AuthInfo{" +
                "code='" + code + '\'' +
                ", info='" + info + '\'' +
                '}';
    }
}
